import React from 'react';
import { MapvglLayer } from 'react-bmapgl';
import DaDukou from './dadukou.json';
import setting from './setting';

function GroupMapGeo({ map, view, config }) {
  const { colorCode = 'rgb(0, 255, 255)' } = config;
  view.startAnimation();
  return (
    <MapvglLayer
      map={map}
      view={view}
      type="LineTripLayer"
      data={DaDukou}
      options={{
        color: colorCode,
        trailLength: 21,
        startTime: 100
      }}
  />);
}
GroupMapGeo.setting = setting;
export default GroupMapGeo;
